package org.seedltd.upms.model.detection.form;

import java.util.Date;

import org.seedltd.base.annotation.Like;
import org.seedltd.base.annotation.LikeType;
import org.seedltd.base.annotation.SqlSegment;
import org.seedltd.core.base.BaseSearchForm;

import com.baomidou.mybatisplus.annotation.OrderBy;

import lombok.Getter;
import lombok.Setter;

/**
 * 终端管理列表搜索条件
 * 
 * @author laizuan
 * @since 2021/07/28
 */
@Getter
@Setter
public class DetectionTerminalSearchForm extends BaseSearchForm {

    /**
     * 终端类型，1回收箱，0贩卖机
     */
    @SqlSegment
    private Integer terminalType;

    /**
     * 终端所在位置
     */
    @Like(likeType = LikeType.full)
    private String location;

    /**
     * 终端编号
     */
    @SqlSegment
    private String serialNumber;

    /**
     * 创建时间排序
     */
    @OrderBy
    private Date createTime;
}
